package com.sh.sales.happysales.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by zhouyucheng on 2017/9/14.
 */

public class SendAuthRespon extends BaseBean implements Parcelable,Serializable {
    private  String code;  //用户换取access_token的code，仅在ErrCode为0时有效
    private String state; //第三方程序发送时用来标识其请求的唯一性的标志，由第三方程序调用sendReq时传入，由微信终端回传，state字符串长度不能超过1K
    private String lang; //微信客户端当前语言
    private String country;//微信用户当前国家信息

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Override
    public String toString() {
        return "SendAuthRespon{" +
                "code='" + code + '\'' +
                ", state='" + state + '\'' +
                ", lang='" + lang + '\'' +
                ", country='" + country + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.code);
        dest.writeString(this.state);
        dest.writeString(this.lang);
        dest.writeString(this.country);
    }

    public SendAuthRespon() {
    }

    protected SendAuthRespon(Parcel in) {
        this.code = in.readString();
        this.state = in.readString();
        this.lang = in.readString();
        this.country = in.readString();
    }

    public static final Parcelable.Creator<SendAuthRespon> CREATOR = new Parcelable.Creator<SendAuthRespon>() {
        @Override
        public SendAuthRespon createFromParcel(Parcel source) {
            return new SendAuthRespon(source);
        }

        @Override
        public SendAuthRespon[] newArray(int size) {
            return new SendAuthRespon[size];
        }
    };
}
